<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class RemoveColumnsVareaIdAndVlangIdAndVyearIdToVassetisTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('vassetis', function (Blueprint $table) {
            $table->dropForeign('vassetis_vlang_id_foreign');
            $table->dropForeign('vassetis_varea_id_foreign');
            $table->dropForeign('vassetis_vyear_id_foreign');
            $table->dropColumn('vlang_id');
            $table->dropColumn('varea_id');
            $table->dropColumn('vyear_id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('vassetis', function (Blueprint $table) {
            // $table->integer('vlang_id');
            // $table->integer('varea_id');
            // $table->integer('vyear_id');
        });
    }
}
